package optional;

import common.TestData;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author cyt
 * @create 2020-10-14 11:28
 */
public class OptionalTest {

    public static int x = 7;
    public int y = 3;

    public static void main(String[] args) {

        OptionalTest optionalTest1 = new OptionalTest();
        OptionalTest optionalTest2 = new OptionalTest();

        optionalTest1.y = 5;
        optionalTest2.y = 6;

        optionalTest1.x = 1;
        optionalTest2.x = 2;

        System.out.println(optionalTest1.y);

        System.out.println(optionalTest2.y);

        System.out.println(optionalTest1.x);

        System.out.println(optionalTest2.x);

        System.out.println(OptionalTest.x);

        ArrayList<Integer> list = new ArrayList<>();
        Integer[] ints = new Integer[10];
        Integer[] integers = list.toArray(ints);
        Collections.sort(list);
    }
}
